package com.yanyilu.basing.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;


import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author Sxx
 * @since 2020-10-26
 */
@Data
@Accessors(chain = true)
@TableName("total_time_mileage")
public class TotalTimeMileage extends Model<TotalTimeMileage> {

    private static final long serialVersionUID = 1L;

    /**
     * 总时间里程表主键
     */
    @TableId(value = "total_time_mileage_id", type = IdType.AUTO)
    private Integer totalTimeMileageId;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 总时间
     */
    @TableField("total_time")
    private Integer totalTime;

    /**
     * 总里程
     */
    @TableField("total_mileage")
    private Integer totalMileage;

    /**
     * 用户名
     */
    @TableField("user_name")
    private String userName;

    /**
     *头像
     * @return
     */
    @TableField("head_image")
    private String headImage;

    @Override
    protected Serializable pkVal() {
        return this.totalTimeMileageId;
    }

}
